package com.example.shouYePoji.siYunShiPinTongJi;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 。
 * @version 1.0
 * Create by 2022/11/13 9:54
 */
//两个时间之间的返回值接收类
public class BetweenTwoTimes {
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date DateTime01;
    private Date DateTime02;

    @Override
    public String toString() {
        return "BetweenTwoTimes{" +
                "DateTime01=" + DateTime01 +
                ", DateTime02=" + DateTime02 +
                '}';
    }

    public Date getDateTime01() {
        return DateTime01;
    }

    public void setDateTime01(Date dateTime01) {
        DateTime01 = dateTime01;
    }

    public Date getDateTime02() {
        return DateTime02;
    }

    public void setDateTime02(Date dateTime02) {
        DateTime02 = dateTime02;
    }

    public BetweenTwoTimes(Date dateTime01, Date dateTime02) {
        DateTime01 = dateTime01;
        DateTime02 = dateTime02;
    }
}
